<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		//Math.random()生成的数是0~1之间的小数
		int i =((int)(Math.random()*10))+1;
		if(i<5){%>
		<jsp:forward page="bad.jsp">
		<jsp:param value="<%=i %>" name="score"/>
		</jsp:forward>
		<%}else{%>
		<jsp:forward page="good.jsp">
		<jsp:param value="<%=i %>" name="score"/>
		</jsp:forward>
		<%}%>
</body>
</html>